package com.orphan.supplier.controller;


import com.orphan.supplier.po.Good;
import com.orphan.supplier.service.IGoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jack
 * @since 2021-07-20
 */
@RestController
@RequestMapping("/good")
public class GoodController {
  @Autowired
    IGoodService iGoodService;
  @GetMapping("getAll")
  public List<Good> getAll(){
      return iGoodService.getAll();
  }
}
